package oncelock

import "sync"

type instance struct {
	id   int
	name string
}

var (
	aInstance *instance
	once      sync.Once
)

func GetOnceInstance() *instance {
	once.Do(func() {
		aInstance = &instance{id: 233, name: "name"}
	})
	return aInstance
}
